package edu.scau.misp.backend_module.core.rms_dto;

import edu.scau.misp.backend_module.domain.Category;
import edu.scau.misp.backend_module.domain.DealDishAddition;

import java.util.List;

public class DealDTO {

    /**
     * 重新装载后端发往前端的结构数据；
     * 需要组合能够查询后端的变量，以及存放查询和结果的集合；
     *
     *
     */

    /**
     * 实体类：Deal
     */
    private Long dealSn;
    private  String dealName;
    private Long dealPrice;
    private String dealDescription;
    /**
     * 实体类：Category
     */
    private String categoryName;
    private String categoryDescription;


    /**
     * 需要一个集合用于存放所有关联的菜品信息；
     */
    private List<DealDishAddition> list;




    public Long getDealSn() {
        return dealSn;
    }

    public void setDealSn(Long dealSn) {
        this.dealSn = dealSn;
    }

    public String getDealName() {
        return dealName;
    }

    public void setDealName(String dealName) {
        this.dealName = dealName;
    }

    public Long getDealPrice() {
        return dealPrice;
    }

    public void setDealPrice(Long dealPrice) {
        this.dealPrice = dealPrice;
    }

    public String getDealDescription() {
        return dealDescription;
    }

    public void setDealDescription(String dealDescription) {
        this.dealDescription = dealDescription;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public String getCategoryDescription() {
        return categoryDescription;
    }

    public void setCategoryDescription(String categoryDescription) {
        this.categoryDescription = categoryDescription;
    }

    public List<DealDishAddition> getList() {
        return list;
    }

    public void setList(List<DealDishAddition> list) {
        this.list = list;
    }

    @Override
    public String toString() {
        return "DealDTO{" +
                "dealSn=" + dealSn +
                ", dealName='" + dealName + '\'' +
                ", dealPrice=" + dealPrice +
                ", dealDescription='" + dealDescription + '\'' +
                ", categoryName='" + categoryName + '\'' +
                ", categoryDescription='" + categoryDescription + '\'' +
                ", list=" + list +
                '}';
    }

    public DealDTO(Long dealSn, String dealName, Long dealPrice, String dealDescription, String categoryName, String categoryDescription, List<DealDishAddition> list) {
        this.dealSn = dealSn;
        this.dealName = dealName;
        this.dealPrice = dealPrice;
        this.dealDescription = dealDescription;
        this.categoryName = categoryName;
        this.categoryDescription = categoryDescription;
        this.list = list;
    }

    public DealDTO() {
    }
}
